#include <hidef.h>      /* common defines and macros */
#include "derivative.h"      /* derivative-specific definitions */
/** Variable types and common definitions */
#include     "typedefs.h"
#include "Mcu.h"
#include "Gpt.h"




void main(void) {
  
  /* put your own code here */
  
  
  DDRA_DDRA0 = 1;  /* Set Debug PIN as output */
  
  Mcu_Init(); /*Already done by Start12.c code */
  Mcu_InitClock();           /* Initialize PLL */
  Mcu_DistributePllClock();  /* Set PLL as source Clock */
  
  Gpt_Init(&mcal_gpt_configuration);     /* Initialize Gpt driver */
  Gpt_StartTimer( GPT_CHANNEL_0, 1 );    /* Start Gpt Channel 0 */
  Gpt_EnableNotification(GPT_CHANNEL_0); /* Enable notifications of Channel 0 */
	EnableInterrupts;


  for(;;) {
    _FEED_COP(); /* feeds the dog */
  } /* loop forever */
  /* please make sure that you never leave main */
}
  

